import Vue from 'vue'
import App from './views/App.vue'
import store from './vuex/store'
import router from './router'
import { sync } from 'vuex-router-sync'
import { native } from './native'
import VueAnalytics from 'vue-analytics'
import client from './utils/client'

console.log(process.env)

sync(store, router)

const init = () => {
    let app = new Vue({
        router,
        store,
        render: h => h(App)
    }).$mount('#app')
}

Vue.use(VueAnalytics, {
  id: 'UA-73764483-5',
  router
})


client.initializeAll(()=>{
	native(init)
})
